Package dopal :: Module objects :: Class RemoteObject
[show private | hide private]
[frames | no frames]

Type RemoteObject

Known Subclasses:
AzureusObject, TypelessRemoteObject

Method Summary
  __init__(self, connection, object_id, attributes)
  __repr__(self)
  __str__(self)
  get_connection(self)
  get_object_id(self)
  get_remote_attributes(self)
  get_remote_type(self)
  get_short_object_id(self)
  invoke_object_method(self, method, method_args, result_type)
  refresh_object(self)
Updates the remote attributes on this object.
  set_remote_attribute(self, name, value)
  update_remote_data(self, attribute_data)
  verify_connection(self)
  _get_self_from_root_object(self, plugin_interface)
  _get_type_for_attribute(self, attrib_name, mapping_key)
  _handle_invocation_error(self, error, method_name, method_args)
  _refresh_object(self, connection_to_use)
Internal method which refreshes the attributes on the object.

Method Details

refresh_object(self)

Updates the remote attributes on this object.
Returns:
None
Raises:
NonRefreshableConnectionlessObjectError - If the object is not attached to a connection.

_refresh_object(self, connection_to_use)

Internal method which refreshes the attributes on the object.

This method actually performs two different functionalities.

If the connection to use is the same as the one already attached, with the same connection ID, then a refresh will take place.

If the connection is either a different connection, or the connection ID is different, then an attempt will be made to retrieve the equivalent object to update the attributes.
Parameters:
connection_to_use - The connection object to update with.
           (type=AzureusObjectConnection)
Returns:
None
Raises:
NonRefreshableObjectTypeError - Raised when the object type is not one which can be refreshed on broken connections.
NonRefreshableIncompleteObjectError - Raised when the object is missing certain attributes which prevents it being refreshed on broken connections.

Generated by Epydoc 2.1 on Wed May 03 14:22:32 2006 http://epydoc.sf.net